/**
 * Created by fangshufeng on 2018/3/25.
 */
import  React from 'react'
import {Button} from 'antd';

export default class ProductList extends React.Component {
    render() {
        return <div>
            {this.props.title}
            <Button onClick={() => {
                this.props.action1()
            }}>我是第一种方式</Button>
            <Button onClick={() => {
                this.props.action2()
            }}>我是第二种方式</Button>
        </div>
    }
}